package com.adingxiong.cft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @ClassName UserRegister
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/9/24 16:51
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRegister {

    @NotEmpty
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotEmpty
    @Size(min = 6,max = 16,message = "密码长度为6-16为")
    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "头像")
    private String icon;

    @NotEmpty
    @ApiModelProperty(value = "昵称")
    private String nickName;

    @Email
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "备注")
    private String note;
}
